package com.du.linandroid.util;

import org.json.JSONObject;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by DuZiLin on 2018/3/29.
 */

public class Util {
    private static Map<Object , Object> toJsonMap = new HashMap<>();
    public static JSONObject getFailJson(String code , String str){
        toJsonMap.put(code , str);
        JSONObject jsonObject = new JSONObject(toJsonMap);
        toJsonMap.clear();
        return  jsonObject;
    }
}
